package com.example.demoserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName inte_datapoint
 */
@TableName(value ="inte_datapoint")
public class InteDatapoint implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 网关id
     */
    private Integer gatewayid;

    /**
     * 节点标识
     */
    private String pointtag;

    /**
     * 节点单位
     */
    private String pointunit;

    /**
     * 节点数据
     */
    private Double pointvalue;

    /**
     * 是否为bool
     */
    private Integer isbool;

    /**
     * 更新时间
     */
    private String updatetime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 网关id
     */
    public Integer getGatewayid() {
        return gatewayid;
    }

    /**
     * 网关id
     */
    public void setGatewayid(Integer gatewayid) {
        this.gatewayid = gatewayid;
    }

    /**
     * 节点标识
     */
    public String getPointtag() {
        return pointtag;
    }

    /**
     * 节点标识
     */
    public void setPointtag(String pointtag) {
        this.pointtag = pointtag;
    }

    /**
     * 节点单位
     */
    public String getPointunit() {
        return pointunit;
    }

    /**
     * 节点单位
     */
    public void setPointunit(String pointunit) {
        this.pointunit = pointunit;
    }

    /**
     * 节点数据
     */
    public Double getPointvalue() {
        return pointvalue;
    }

    /**
     * 节点数据
     */
    public void setPointvalue(Double pointvalue) {
        this.pointvalue = pointvalue;
    }

    /**
     * 是否为bool
     */
    public Integer getIsbool() {
        return isbool;
    }

    /**
     * 是否为bool
     */
    public void setIsbool(Integer isbool) {
        this.isbool = isbool;
    }

    /**
     * 更新时间
     */
    public String getUpdatetime() {
        return updatetime;
    }

    /**
     * 更新时间
     */
    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        InteDatapoint other = (InteDatapoint) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getGatewayid() == null ? other.getGatewayid() == null : this.getGatewayid().equals(other.getGatewayid()))
            && (this.getPointtag() == null ? other.getPointtag() == null : this.getPointtag().equals(other.getPointtag()))
            && (this.getPointunit() == null ? other.getPointunit() == null : this.getPointunit().equals(other.getPointunit()))
            && (this.getPointvalue() == null ? other.getPointvalue() == null : this.getPointvalue().equals(other.getPointvalue()))
            && (this.getIsbool() == null ? other.getIsbool() == null : this.getIsbool().equals(other.getIsbool()))
            && (this.getUpdatetime() == null ? other.getUpdatetime() == null : this.getUpdatetime().equals(other.getUpdatetime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getGatewayid() == null) ? 0 : getGatewayid().hashCode());
        result = prime * result + ((getPointtag() == null) ? 0 : getPointtag().hashCode());
        result = prime * result + ((getPointunit() == null) ? 0 : getPointunit().hashCode());
        result = prime * result + ((getPointvalue() == null) ? 0 : getPointvalue().hashCode());
        result = prime * result + ((getIsbool() == null) ? 0 : getIsbool().hashCode());
        result = prime * result + ((getUpdatetime() == null) ? 0 : getUpdatetime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", gatewayid=").append(gatewayid);
        sb.append(", pointtag=").append(pointtag);
        sb.append(", pointunit=").append(pointunit);
        sb.append(", pointvalue=").append(pointvalue);
        sb.append(", isbool=").append(isbool);
        sb.append(", updatetime=").append(updatetime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}